/**
 * Place holder for copyright, needs to be replaced before release.
 */
package com.softao.ming.gwt.ui.client;

import com.softao.ming.gwt.internal.ui.client.workbench.Workbench;


/**
 * 
 */
public final class PlatformUI {
	private static IWorkbench mWorkbench;
	
	/**
	 * @param advisor advisor for creating the workbench.
	 */
	public static void createAndRunWorkbench(IWorkbenchAdvisor advisor) {
		Workbench workbench = new Workbench(advisor);
		workbench.createAndRunWorkbench();
		mWorkbench = workbench;
	}
	
	/**
	 * @return the existing workbench.
	 */
	public static final IWorkbench getWorkbench() {
		return mWorkbench;
	}

	private PlatformUI() {
	}
}
